package Test01;

public class Demo06 {
    public static void main(String[] args) {
       /* int y = 1;

        if (x++ == 2 & ++y == 2) {
            x = 7;
        }
        System.out.println("x=" + x + ",y=" + y);*/
        int x = 1,y = 1;

        if(x++ == 2 && ++y == 2){
            x = 7;
        }
        System.out.println("x="+x+",y="+y);
    }
}
